<?php
if(isset($_GET['opt']))
{
	$opt = $_GET['opt'];
	$moduleID = $moduleService->getModuleIDByFuncAndOpt($context, $result, $func, $opt);
	$permit = $permitService->checkPermition($context, $result, $_SESSION['user']['type'], $moduleID);
	if($opt == "view" && $permit ==true)
	{
		$smarty->display($templateDir . "/temp1/viewInfoUser.tpl");
	}
	if($opt == "change" && $permit ==true)
	{
		$smarty->display($templateDir . "/temp1/changeProfile.tpl");
	}
}
?>